<!DOCTYPE html>
<html class="x-admin-sm">
<%@ page pageEncoding="UTF-8" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <base href="${pageContext.request.contextPath}/">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">
                    <a class="layui-btn lafite_main_color" onclick="xadmin.open('新增用户','./adduser.html',600,500)"><i class="layui-icon"></i>新增用户</a>
                </div>

                <div class="layui-card-body">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr style="background: #27d4c9;">
                            <th>用户编号</th>
                            <th>用户名称</th>
                            <th>用户手机号</th>
                            <th>是否管理员</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>

                        </tr>
                        </tbody>
                    </table>
                </div>
                <div id="lafite_pages"></div>
            </div>
        </div>
    </div>
</div>
</body>
<script>layui.use(['laypage', 'laydate', 'form'],
    function() {
        var laydate = layui.laydate;
        var laypage = layui.laypage;

        // 分页样式
        laypage.render({
            elem: 'lafite_pages'
            ,count: 100
            ,theme: '#D91715',
            jump: function(obj){
                //模拟渲染
                console.log(obj);
            }
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });

/*用户-删除*/
function member_del(obj, id) {
    layer.confirm('是否确认删除当前项目？',
        {title:"项目删除"},
        function(index) {
            //发异步删除数据
            $(obj).parents("tr").remove();
            layer.msg('已删除!', {
                icon: 1,
                time: 1000
            });
        });
}

/*用户-撤销*/
function member_revoke(obj, id) {
    layer.confirm('确认冻结吗？',
        {title:"用户冻结"},
        function(index) {
            //发异步删除数据
            // $(obj).parents("tr").remove();
            // layer.msg('已删除!', {
            //     icon: 1,
            //     time: 1000
            // });
        });
}

</script>

</html>